package com.quick.develop.flowable.framework.core;

import lombok.extern.slf4j.Slf4j;
import org.flowable.common.engine.api.delegate.event.FlowableEvent;
import org.flowable.common.engine.api.delegate.event.FlowableEventListener;
import org.springframework.stereotype.Component;

/**
 * @author junyuan.liu
 * @description:
 * @date 2022/5/20 15:28
 */
@Component
@Slf4j
public class ActivityCompleteListener implements FlowableEventListener {
    @Override
    public void onEvent(FlowableEvent flowableEvent) {
        System.out.println("=====ActivityCompleteListener===");

    }

    @Override
    public boolean isFailOnException() {
        return true;
    }

    @Override
    public boolean isFireOnTransactionLifecycleEvent() {
        return false;
    }

    @Override
    public String getOnTransaction() {
        return null;
    }
}
